package com.example.smartlearning.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.smartlearning.dao.CarouselDao;
import com.example.smartlearning.entity.CarouselEntity;
import com.example.smartlearning.entity.ResultEntity;
import com.example.smartlearning.service.CarouselService;
import jakarta.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class CarouselServiceImpl extends ServiceImpl<CarouselDao,CarouselEntity> implements CarouselService {
    private static final Logger logger = LoggerFactory.getLogger(CarouselServiceImpl.class);//日志。getLogger需要传入当前的类名

    @Resource
    CarouselDao carouselDao;


    @Override
    public String getCarouselImg(String sort) {
        return ResultEntity.success(carouselDao.selectImgBySort(sort));
    }
}
